package com.googlecode.jtoy.patterns.mediator;

public class Guest {

	private boolean free;
	private Mediator med;

	public Guest(Mediator md) {

		this.med = md;
	}

	public boolean isFree() {

		return free;
	}

	public void setFree(boolean free) {

		this.free = free;
	}

	public void speak() {

		med.guestSpeak();
	}

	public void stop() {

		med.guestStop();
	}
}
